﻿//创建时间: 2010-10-11
//创建作者: 李 城
//功能说明: 站点管理
//最后修改: 2010-10-11
using System;
using System.Collections.Generic;
using System.Text;

using TRPOP.Common;

namespace TRPOP.CMS.Model
{
    [Serializable]
    public class PSNInfo
    {
        #region 私有变量
        private int m_intpsnid = 0;
        private string m_strName = "";
        private int m_intType = 0;
        private string m_strUrl = "";
        private string m_strRoot = "";
        private string m_strDescription = "";
        private DateTime m_datAddTime = StringExtension.NullDateTime;
        private string m_strXml = "";
        #endregion

        #region 成员函数

        /// <summary>
        ///  站点id
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public int psnid
        {
            get
            {
                return m_intpsnid;
            }
            set
            {
                m_intpsnid = value;
            }
        }

        /// <summary>
        ///  名称
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public string Name
        {
            get
            {
                return m_strName;
            }
            set
            {
                m_strName = value;
            }
        }

        /// <summary>
        ///  类型
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public int Type
        {
            get
            {
                return m_intType;
            }
            set
            {
                m_intType = value;
            }
        }

        /// <summary>
        ///  域名URL
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public string Url
        {
            get
            {
                return m_strUrl;
            }
            set
            {
                m_strUrl = value;
            }
        }

        /// <summary>
        ///  目录
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public string Root
        {
            get
            {
                return m_strRoot;
            }
            set
            {
                m_strRoot = value;
            }
        }

        /// <summary>
        ///  描述
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public string Description
        {
            get
            {
                return m_strDescription;
            }
            set
            {
                m_strDescription = value;
            }
        }

        /// <summary>
        ///  添加时间
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public DateTime AddTime
        {
            get
            {
                return m_datAddTime;
            }
            set
            {
                m_datAddTime = value;
            }
        }

        /// <summary>
        ///  Xml
        /// </summary>
        [DataAttribute(FieldType.DBField)]
        public string Xml
        {
            get
            {
                return m_strXml;
            }
            set
            {
                m_strXml = value;
            }
        }
        #endregion

    }
}

